<template>
	<div>
		<div>
			<div style="position: relative;display: inline-block;margin: 3px;">
				<span>师傅手机号：</span>
				<el-input style="width: 200px;" @keydown.enter.native="handleChange55" placeholder="请输入师傅手机号"
					v-model="phoneT">
				</el-input>&nbsp;&nbsp;
			</div>
			<div style="position: relative;display: inline-block;margin: 3px;">
				<span>医院名称：</span>
				<el-input style="width: 200px;" @keydown.enter.native="handleChange55" placeholder="请输入医院名称"
					v-model="hospitalNameT">
				</el-input>&nbsp;&nbsp;
			</div>
			<div style="position: relative;display: inline-block;margin: 3px;">
				<span>城市：</span>
				<el-input style="width: 200px;" @keydown.enter.native="handleChange55" placeholder="请输入城市"
					v-model="cityT">
				</el-input>&nbsp;&nbsp;
			</div>
			<div style="position: relative;display: inline-block;margin: 3px;">
				<span>订单号：</span>
				<el-input style="width: 200px;" @keydown.enter.native="handleChange55" placeholder="请输入订单号"
					v-model="orderNoT">
				</el-input>&nbsp;&nbsp;
			</div>
			<div style="margin-bottom: 10px;display: inline-block;margin: 3px;">
				<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="handleChange55">
					刷新</el-button>
				<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleck">
					重置</el-button>
			</div>

		</div>
		<div>
			<div id="container" style="width:95%;height:77vh;margin-left: 2.5%;position: relative;"
				v-loading="tableDataLoadingDt"></div>
		</div>
		<div>
			<!-- 医院订单弹框 -->
			<el-dialog title="医院订单" :visible.sync="dialogFormVisible2" center width="70%" style="z-index: 1000;">
				<div style="display: inline-block;margin: 3px;">
					<div style="position: relative;display: inline-block;margin: 3px;">
						<span>订单类型：</span>
						<el-select v-model="type" style="width:150px;margin-left: 10px;" @change="animeDat(type)">
							<el-option v-for="item in typeNum" :key="item.value" :label="item.label"
								:value="item.value">
							</el-option>
						</el-select>&nbsp;&nbsp;&nbsp;
					</div>
					<div style="position: relative;display: inline-block;margin: 3px;">
						<span>下单人用户名：</span>
						<el-input style="width: 200px;" @keydown.enter.native="select" placeholder="请输入下单人用户名"
							v-model="userName"></el-input>&nbsp;&nbsp;
					</div>
					<div style="position: relative;display: inline-block;margin: 3px;">
						<span>订单编号：</span>
						<el-input style="width: 200px;" @keydown.enter.native="select" placeholder="请输入订单编号"
							v-model="ordersNo"></el-input>&nbsp;&nbsp;
					</div>
				</div>
				<div style="display: inline-block;">
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="animeDat">查询
					</el-button>
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleansDet">
						重置
					</el-button>

				</div>
				<el-table v-loading="tableDataLoading" :data="tableData.records">
					<el-table-column prop="ordersId" label="编号" width="80" fixed="left">
					</el-table-column>

					<el-table-column prop="userName" label="下单用户">
						<template slot-scope="scope">
							<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.userId)">
								{{scope.row.ordersUserName ? scope.row.ordersUserName : '未绑定'}}
							</el-button>
							<!-- <span style="color: #008000;cursor: pointer;" @click="updates(scope.row.userId)"
								v-if="scope.row.ordersType==1">{{ scope.row.ordersUserName }}</span>
							<span style="color: #008000;cursor: pointer;" @click="updates(scope.row.userId)"
								v-if="scope.row.ordersType==2">{{ scope.row.ordersUserName }}</span> -->
						</template>
					</el-table-column>
					<!-- <el-table-column prop="userName" label="接单用户">
						<template slot-scope="scope">
							<span v-if="scope.row.state==0"> - </span>
							<span v-else
								style="color: #009900;">{{ scope.row.userName?scope.row.userName:'未绑定' }}</span>
						</template>
					</el-table-column> -->
					<el-table-column prop="ordersNo" label="订单编号" width="150">
					</el-table-column>
					<el-table-column prop="ordersType" label="订单类型">
						<template slot-scope="scope">
							<span v-if="scope.row.ordersType==1">陪诊订单</span>
							<span v-if="scope.row.ordersType==2">陪护订单</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.hospitalName" label="医院名称" width="150">
					</el-table-column>
					<el-table-column prop="hospitalImg" label="医院照片" width="200">
						<template slot-scope="scope">
							<div v-if="scope.row.appointInformation||scope.row.appointInformation.hospitalImg">
								<img v-for="(item,index) in scope.row.appointInformation.hospitalImg.split(',')"
									:key="index" :src="item" width="40" height="40" style="margin:3px" />
							</div>
						</template>
					</el-table-column>

					<el-table-column prop="appointInformation.departmentName" label="科室" width="150">
					</el-table-column>
					<el-table-column prop="appointInformation.type" label="服务类型">
						<template slot-scope="scope">
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==1">陪诊</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==2">陪护</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==3">助浴</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==4">护理</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.serviceName" label="服务名称">
					</el-table-column>
					<el-table-column prop="appointInformation.tags" label="服务标签" width="160">
					</el-table-column>
					<el-table-column prop="img" label="服务照片" width="200">
						<template slot-scope="scope">
							<div v-if="scope.row.appointInformation||scope.row.appointInformation.img">
								<img v-for="(item,index) in scope.row.appointInformation.img.split(',')" :key="index"
									:src="item" width="40" height="40" style="margin:3px" />
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.patientInfo.realName" label="预约人姓名" width="150">
						<template slot-scope="scope">
							<span v-if="scope.row.appointInformation||scope.row.appointInformation.patientInfo">
								<span v-if="scope.row.appointInformation.patientInfo">
									{{scope.row.appointInformation.patientInfo.realName}}
								</span>

							</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.departmentName" label="就诊信息" width="150">
						<template slot-scope="scope">
							<span style="cursor: pointer;color: #4f9dec;"
								@click="dataDel(scope.row.appointInformation,4)">查看详情</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.patientInfo.emergencyPhone" label="紧急联系人电话" width="160">
					</el-table-column>
					<el-table-column prop="rate" label="陪诊/陪护佣金">
						<template slot-scope="scope">
							<span>{{scope.row.rate?scope.row.rate:'0'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="zhiRate" label="推广员佣金">
						<template slot-scope="scope">
							<!-- <span style="color: #DD0000;cursor: pointer;"
								@click="updates(scope.row.zhiUserId)">{{scope.row.zhiRate?scope.row.zhiRate:'0'}}</span> -->
							<el-button size="mini" style="color: #DD0000;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.zhiUserId)">
								{{scope.row.zhiRate?scope.row.zhiRate:'0'}}
							</el-button>
						</template>
					</el-table-column>
					<el-table-column prop="feiRate" label="代理商佣金">
						<template slot-scope="scope">
							<!-- <span style="color: #DD0000;cursor: pointer;"
								@click="updates(scope.row.feiUserId)">{{scope.row.feiRate?scope.row.feiRate:'0'}}</span> -->
							<el-button size="mini" style="color: #DD0000;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.feiUserId)">
								{{scope.row.feiRate?scope.row.feiRate:'0'}}
							</el-button>
						</template>
					</el-table-column>
					<el-table-column prop="pingRate" label="平台金额">
						<template slot-scope="scope">
							<span>{{scope.row.pingRate?scope.row.pingRate:'0'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="payMoney" label="支付金额">
						<template slot-scope="scope">
							<span style="color: #f56c6c;">{{scope.row.payMoney}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.hopeTime" label="预约时间" width="160">
					</el-table-column>
					<el-table-column prop="remarks" label="备注" width="200">
					</el-table-column>

					<el-table-column prop="code" label="确认码">
					</el-table-column>
					<el-table-column prop="isTransfer" label="是否是转单" fixed="right">
						<template slot-scope="scope">
							<span style="color: #999;" v-if="scope.row.isTransfer==1">是</span>
							<span style="color: #999;" v-else>否</span>
						</template>
					</el-table-column>
					<el-table-column prop="state" label="订单状态" fixed="right">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.state==0">待支付</span>
							<span style="color: #E87D0D;" v-if="scope.row.state==1">进行中</span>
							<span style="color: #E87D0D;" v-if="scope.row.state==5">待服务</span>
							<span style="color: #009900;" v-if="scope.row.state==2">已完成</span>
							<span style="color: #999;" v-if="scope.row.state==3">已取消</span>
							<span style="color: #999;" v-if="scope.row.state==4">待接单</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>
					<el-table-column prop="createTime" fixed="right" label="操作" width="160">
						<template slot-scope="scope">
							<el-button size="mini" type="primary" v-if="scope.row.state === 4"
								:disabled="!isAuth('orderCenter:wancheng')" @click="zhuandan(scope.row,'pd')"
								style="margin: 3px;">派单</el-button>

						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next" :total="tableData.total">
					</el-pagination>
				</div>
			</el-dialog>
			<!-- 师傅列表 -->
			<el-dialog title="师傅列表" :visible.sync="dialogFormVisible" center width="70%">
				<div style="margin:5px;display: inline-block;">
					<span>手机号:</span>
					<el-input style="width: 150px;" @keydown.enter.native="selectU" clearable placeholder="请输入手机号"
						v-model="phone"></el-input>
				</div>
				<div style="margin:5px;display: inline-block;">
					<span>真实姓名:</span>
					<el-input style="width: 150px;" @keydown.enter.native="selectU" clearable placeholder="请输入昵称"
						v-model="campus"></el-input>
				</div>
				<div style="position: relative;display: inline-block;margin: 3px;">
					<span>性别：</span>
					<el-select v-model="sexU" style="width:150px;margin-left: 10px;" @change="selectU()">
						<el-option v-for="item in sexNum" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>
				</div>
				<div style="margin:5px;display: inline-block;">
					<span>城市:</span>
					<el-input style="width: 150px;" @keydown.enter.native="selectU" clearable placeholder="请输入城市"
						v-model="cityU"></el-input>
				</div>
				<div style="display: inline-block;">
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="selectU">查询
					</el-button>
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleansU">重置
					</el-button>
				</div>
				<el-table v-loading="tableDataLoadingU" :data="userData.records">
					<el-table-column prop="userId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="昵称" width="120">
						<template slot-scope="scope">
							　<!-- <span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)">
								{{scope.row.userName?scope.row.userName:'未绑定'}}
							</span> -->
							<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.userId)">
								{{scope.row.userName?scope.row.userName:'未绑定'}}
							</el-button>
						</template>
					</el-table-column>
					<el-table-column prop="userName" label="真实姓名" width="120">
						<template slot-scope="scope">
							　<!-- <span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)">
								{{scope.row.userCertification?scope.row.userCertification.name:scope.row.userName}}
							</span> -->
							<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.userId)">
								{{scope.row.userCertification?scope.row.userCertification.name:scope.row.userName}}
							</el-button>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="用户头像" width="100">
						<template slot-scope="scope">
							　　<img v-if="scope.row.userCertification" :src="scope.row.userCertification.avatar"
								width="40" height="40" />
							<span v-else>暂无图片</span>
						</template>
					</el-table-column>
					<el-table-column prop="userCertification.phone" label="手机号">
					</el-table-column>
					<el-table-column prop="userCertification.sex" label="性别">
						<template slot-scope="scope">
							<span
								v-if="scope.row.userCertification">{{scope.row.userCertification.sex==1?'男':'女'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="" label="服务地区">
						<template slot-scope="scope">
							<span
								v-if="scope.row.userCertification">{{scope.row.userCertification.province}}{{scope.row.userCertification.city}}{{scope.row.userCertification.district}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="userCertification.age" label="年龄">
					</el-table-column>
					<el-table-column prop="userCertification.workAge" label="护龄">
					</el-table-column>
					<el-table-column prop="levelName" label="等级">
					</el-table-column>
					<el-table-column prop="finalScore" label="评分">
					</el-table-column>
					<el-table-column prop="orderCount" label="接单量">
					</el-table-column>
					<el-table-column prop="workStatus" label="接单状态">
						<template slot-scope="scope">
							<span style="color: #008000;" v-if="scope.row.workStatus==0">空闲</span>
							<span style="color: #DD0000;" v-else>忙碌</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180">
					</el-table-column>
					<el-table-column label="操作" prop="id" width="100" fixed='right' align="center">
						<template slot-scope="scope">
							<el-button size="mini" type="primary" @click="userBtns(scope.row)">确认
							</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeU" @current-change="handleCurrentChangeU"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit1" :current-page="page1"
						layout="total,sizes, prev, pager, next,jumper" :total="userData.total">
					</el-pagination>
				</div>
			</el-dialog>
			<!-- 信息详情 -->
			<el-dialog :title="titles" :visible.sync="dialogFormVisibleDel" center width="80%">
				<el-row>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">就诊人姓名</div>
								<div class="text_color">
									<!-- <span style="cursor: pointer;color: #4f9dec;"
										v-if="detaDatle.patientInfo"
										@click="updates(detaDatle.patientInfo.userId)">{{detaDatle.patientInfo.realName}}</span> -->
									<el-button v-if="detaDatle.patientInfo" size="mini"
										style="color: #4f9dec;background: #fff;border: none;padding: 0;" type="primary"
										:disabled="!isAuth('userList:details')"
										@click="updates(detaDatle.patientInfo.userId)">
										{{detaDatle.patientInfo.realName}}
									</el-button>
								</div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">就诊人电话</div>
								<div class="text_color"><span
										v-if="detaDatle.patientInfo">{{detaDatle.patientInfo.phone}}</span></div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">紧急联系人电话</div>
								<div class="text_color"><span
										v-if="detaDatle.patientInfo">{{detaDatle.patientInfo.emergencyPhone?detaDatle.patientInfo.emergencyPhone:'暂无'}}</span>
								</div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">身份证号</div>
								<div class="text_color"><span
										v-if="detaDatle.patientInfo">{{detaDatle.patientInfo.idNumber}}</span></div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">性别</div>
								<div class="text_color"><span
										v-if="detaDatle.patientInfo">{{detaDatle.patientInfo.sex==1?'男':'女'}}</span>
								</div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">是否满18岁</div>
								<div class="text_color"><span
										v-if="detaDatle.patientInfo">{{detaDatle.patientInfo.isUnderAge==1?'是':'否'}}</span>
								</div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">与下单人的关系</div>
								<div class="text_color"><span
										v-if="detaDatle.patientInfo">{{detaDatle.patientInfo.relationship}}</span></div>
							</div>
						</div>
					</el-col>
					<!-- </el-row>
				<el-row> -->
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">床号</div>
								<div class="text_color">
									<span>{{detaDatle.badNo}}</span>
								</div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">症状</div>
								<div class="text_color"><span>{{detaDatle.symptom}}</span>
								</div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">自理能力</div>
								<div class="text_color"><span>{{detaDatle.selfAbility}}</span></div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">护理需求</div>
								<div class="text_color"><span>{{detaDatle.nursingNeeds}}</span></div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">护理天数</div>
								<div class="text_color"><span>{{detaDatle.serviceNum}}</span></div>
							</div>
						</div>
					</el-col>
					<el-col :span="8" class="cards">
						<div class="box">
							<div class="box_num">
								<div class="box_color">备注</div>
								<div class="text_color"><span>{{detaDatle.remarks}}</span></div>
							</div>
						</div>
					</el-col>
				</el-row>

			</el-dialog>
			<!-- 师傅订单 -->
			<el-dialog title="待服务订单" :visible.sync="dialogFormVisibleSf" center width="80%">
				<el-table v-loading="tableDataLoadingU" :data="userData.records">
					<el-table-column prop="ordersId" label="编号" width="80" fixed="left">
					</el-table-column>

					<el-table-column prop="userName" label="下单用户">
						<template slot-scope="scope">
							<!-- <span style="color: #008000;cursor: pointer;" @click="updates(scope.row.userId)">{{ scope.row.ordersUserName }}</span> -->
							<el-button size="mini" style="color: #008000;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.userId)">
								{{ scope.row.ordersUserName }}
							</el-button>
						</template>
					</el-table-column>
					<el-table-column prop="ordersNo" label="订单编号" width="150">
					</el-table-column>
					<el-table-column prop="ordersType" label="订单类型">
						<template slot-scope="scope">
							<span v-if="scope.row.ordersType==1">陪诊订单</span>
							<span v-if="scope.row.ordersType==2">陪护订单</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.hospitalName" label="医院名称" width="150">
					</el-table-column>
					<el-table-column prop="hospitalImg" label="医院照片" width="200">
						<template slot-scope="scope">
							<div v-if="scope.row.appointInformation&&scope.row.appointInformation.hospitalImg">
								<img v-for="(item,index) in scope.row.appointInformation.hospitalImg.split(',')"
									:key="index" :src="item" width="40" height="40" style="margin:3px" />
							</div>
						</template>
					</el-table-column>

					<el-table-column prop="appointInformation.departmentName" label="科室" width="150">
					</el-table-column>
					<el-table-column prop="appointInformation.type" label="服务类型">
						<template slot-scope="scope">
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==1">陪诊</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==2">陪护</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==3">助浴</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==4">护理</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.serviceName" label="服务名称">
					</el-table-column>
					<el-table-column prop="appointInformation.tags" label="服务标签" width="160">
					</el-table-column>
					<el-table-column prop="img" label="服务照片" width="200">
						<template slot-scope="scope">
							<div v-if="scope.row.appointInformation&&scope.row.appointInformation.img">
								<img v-for="(item,index) in scope.row.appointInformation.img.split(',')" :key="index"
									:src="item" width="40" height="40" style="margin:3px" />
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.patientInfo.realName" label="预约人姓名" width="150">
						<template slot-scope="scope">
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.patientInfo">
								<span v-if="scope.row.appointInformation.patientInfo">
									{{scope.row.appointInformation.patientInfo.realName}}
								</span>

							</span>
							<!-- <span style="cursor: pointer;color: #4f9dec;" @click="dataDel(scope.row,4)">查看详情</span> -->
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.departmentName" label="就诊信息" width="150">
						<template slot-scope="scope">
							<span style="cursor: pointer;color: #4f9dec;"
								@click="dataDel(scope.row.appointInformation,4)">查看详情</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.patientInfo.emergencyPhone" label="紧急联系人电话" width="160">
					</el-table-column>
					<el-table-column prop="couponMoney" label="优惠券金额">
						<template slot-scope="scope">
							<span>{{scope.row.couponMoney?scope.row.couponMoney:'0'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="rate" label="陪诊/陪护佣金">
						<template slot-scope="scope">
							<span>{{scope.row.rate?scope.row.rate:'0'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="zhiRate" label="推广员佣金">
						<template slot-scope="scope">
							<!-- <span style="color: #DD0000;cursor: pointer;"
								@click="updates(scope.row.zhiUserId)">{{scope.row.zhiRate?scope.row.zhiRate:'0'}}</span> -->
							<el-button size="mini" style="color: #DD0000;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.zhiUserId)">
								{{scope.row.zhiRate?scope.row.zhiRate:'0'}}
							</el-button>
						</template>
					</el-table-column>
					<el-table-column prop="feiRate" label="代理商佣金">
						<template slot-scope="scope">
							<!-- <span style="color: #DD0000;cursor: pointer;"
								@click="updates(scope.row.feiUserId)">{{scope.row.feiRate?scope.row.feiRate:'0'}}</span> -->
							<el-button size="mini" style="color: #DD0000;background: #fff;border: none;padding: 0;"
								type="primary" :disabled="!isAuth('userList:details')"
								@click="updates(scope.row.feiUserId)">
								{{scope.row.feiRate?scope.row.feiRate:'0'}}
							</el-button>
						</template>
					</el-table-column>
					<el-table-column prop="pingRate" label="平台金额">
						<template slot-scope="scope">
							<span>{{scope.row.pingRate?scope.row.pingRate:'0'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="payMoney" label="支付金额">
						<template slot-scope="scope">
							<span style="color: #f56c6c;">{{scope.row.payMoney}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.hopeTime" label="预约时间" width="160">
						<template slot-scope="scope">
							<span v-if="scope.row.appointInformation">{{scope.row.appointInformation.hopeTime}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.remarks" label="备注" width="200">
						<template slot-scope="scope">
							<span v-if="scope.row.appointInformation">{{scope.row.appointInformation.remarks}}</span>
						</template>
					</el-table-column>

					<el-table-column prop="code" label="确认码">
					</el-table-column>
					<el-table-column prop="isTransfer" label="是否是转单" fixed="right">
						<template slot-scope="scope">
							<span style="color: #999;" v-if="scope.row.isTransfer==1">是</span>
							<span style="color: #999;" v-else>否</span>
						</template>
					</el-table-column>
					<el-table-column prop="state" label="订单状态" fixed="right">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.state==0">待支付</span>
							<span style="color: #E87D0D;" v-if="scope.row.state==1">进行中</span>
							<span style="color: #E87D0D;" v-if="scope.row.state==5">待服务</span>
							<span style="color: #009900;" v-if="scope.row.state==2">已完成</span>
							<span style="color: #999;" v-if="scope.row.state==3">已取消</span>
							<span style="color: #999;" v-if="scope.row.state==4">待接单</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeUd" @current-change="handleCurrentChangeUd"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit1" :current-page="page1"
						layout="total,sizes, prev, pager, next,jumper" :total="userData.total">
					</el-pagination>
				</div>
			</el-dialog>
		</div>
		<!-- <img src="../../assets/img/qishou.png" /> -->


	</div>
</template>

<script>
	import {
		jsonp
	} from 'vue-jsonp'
	import {
		provinceAndCityData,
		regionData,
		provinceAndCityDataPlus,
		regionDataPlus,
		CodeToText,
		TextToCode
	} from 'element-china-area-data'
	var geocoder, map, markersArray, infoWindow = [];
	export default {
		data() {
			return {
				limit: 10,
				page: 1,
				shopName1: '',
				shopName: '',
				openTime: '',
				closeTime: '',
				detailedAddress: '',
				shopLng: '',
				shopLat: '',
				percentage1: 0, //进度条
				img: [], //任务轮播图
				// img: '',
				classn: '',
				value: [],
				parentId: 0,
				parentIdnum: '',

				tableDataLoading: false,
				dialogFormVisible1: false,
				dialogFormVisible2: false,
				dialogFormVisible3: false,
				dialogFormVisible: false,
				typeDatas: {},
				typeDatas1: {},
				titles: '添加',
				// 地图相关
				longitude: '', //经度
				latitude: '', //维度
				loadingMap: true,
				BMap: '',
				map: '',
				geoc: '',
				keyword: '',
				showMap: false,
				pointLngLat: '',
				center: {
					lng: 108.948024,//南昌 115.892151, 西安 108.948024,成都 104.06667
					lat: 34.263161//南昌28.676493,西安 34.263161,成都 30.66667
				},
				lng: 108.948024,
				lat: 34.263161,
				storeAddress: [],
				storeAddre: '请选择城市',
				form: {
					province: '',
					city: '', //市
					district: '', //区
				},
				dialogImageUrl: [],
				dialogVisible: false,
				erweimaImg: '',
				activeName: 'first',
				shopTypeName: '',
				shopTypId: '',
				titles1: '',
				labels: [], //标签集合
				bq: '', //输入的标签名
				province: '',
				city: '', //市
				district: '', //区
				options: regionData,
				shopCover: '',
				shopTypenum: [],
				typeDatas2: [],
				shopType: '',
				geometries: [],
				center: '',
				map: '',
				lists: [],
				index1: 0,
				tableData: {},
				hospitalId: '',
				ordersNo: '',
				userName: '',
				type: '',
				marker: '',
				marker1: '',
				infoWindowList: [],
				typeNum: [{
					value: '',
					label: '全部'
				},
				{
					value: 1,
					label: '陪诊订单'
				},
				{
					value: 2,
					label: '陪护订单'
				},
				],
				userData: {},
				tableDataLoadingU: false,
				dialogFormVisible: false,
				limit1: 10,
				page1: 1,
				phone: '',
				campus: '',
				ordersId: '',
				pd: '',
				titles: '信息详情',
				dialogFormVisibleDel: false,
				detaDatle: {},
				datleIndex: 1,

				phoneT: '',
				hospitalNameT: '',
				cityT: '',
				orderNoT: '',
				lists: [],
				dialogFormVisibleSf: false,
				rows: {},
				tableDataLoadingDt: false,

				ordersType: 1,
				sexU: '',
				sexNum: [{
					value: '',
					label: '全部'
				},
				{
					value: 1,
					label: '男'
				},
				{
					value: 2,
					label: '女'
				},
				],
				cityU: '',
			}
		},
		methods: {
			handleSizeChange(val) {
				this.limit = val
				this.dataSelectoder()
			},
			handleCurrentChange(val) {
				this.page = val
				this.dataSelectoder()
			},
			handleSizeChangeU(val) {
				this.limit1 = val;
				this.dataSelectUser()()
			},
			handleCurrentChangeU(val) {
				this.page1 = val;
				this.dataSelectUser()
			},
			handleSizeChangeUd(val) {
				this.limit1 = val;
				this.daifuwu(this.rows)
			},
			handleCurrentChangeUd(val) {
				this.page1 = val;
				this.daifuwu(this.rows)
			},
			//定位获得当前位置信息
			getMyLocation() {
				var geolocation = new qq.maps.Geolocation("ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75", "来点小收入");
				geolocation.getIpLocation(this.showPosition, this.showErr);
			},
			showPosition(position) {
				this.setMap();
			},
			showErr(e) {
				this.getMyLocation(); //定位失败再请求定位，测试使用
			},
			//位置信息在地图上展示
			setMap() {

				var center = new TMap.LatLng(this.latitude, this.longitude);
				if (map) {
					map.destroy();
				}
				map = []
				infoWindow = []
				// 初始化地图
				map = new TMap.Map('container', {
					zoom: 13, // 设置地图缩放级别
					pitch: 30,
					center: center, // 设置地图中心点坐标
					// mapStyleId: "style1", //个性化样式
					baseMap: {
						type: 'vector',
						// features: ['base', 'building3d'], // 隐藏矢量文字
					},
				});

				// var center = new TMap.LatLng(this.latitude, this.longitude); // 设置中心点坐标
				// // 初始化地图
				// var map = new TMap.Map('container', {
				// 	center: center,
				// 	zoom: 12,
				// });
				// // 初始化label
				// var label = new TMap.MultiLabel({
				// 	id: 'label-layer',
				// 	map: map,
				//  styles: {
				// 		label: new TMap.LabelStyle({
				// 			color: '#3777FF', // 颜色属性
				// 			size: 20, // 文字大小属性
				// 			offset: {
				// 				x: 0,
				// 				y: 0
				// 			}, // 文字偏移属性单位为像素
				// 			angle: 0, // 文字旋转属性
				// 			alignment: 'center', // 文字水平对齐属性
				// 			verticalAlignment: 'middle', // 文字垂直对齐属性
				// 		}),
				// 	},
				// });

				// const dataLayer = TMap.visualization.createDataLayer(layerId, map);
				// dataLayer.then(layer => {
				//     layer.show();
				// });

				// 医院定位
				// console.log('医院定位，',this.geometries)
				this.marker = new TMap.MultiMarker({
					map: map,
					styles: {
						default: new TMap.MarkerStyle({
							width: 66, // 宽度
							height: 66, // 高度
							anchor: {
								x: 46,
								y: 46
							}, // 锚点位置
							src: 'https://mapapi.qq.com/web/lbs/visualizationApi/demo/img/circle.png', // 标注点图片url或base64地址
							color: '#DD0000', // 标注点文本颜色
							size: 14, // 标注点文本文字大小
							offset: {
								x: 0,
								y: 16
							}, // 标注点文本文字基于direction方位的偏移属性
						}),
					},
					geometries: this.geometries,
				});

				//初始化infoWindow
				for (var i in this.geometries) {
					infoWindow = new TMap.InfoWindow({
						map: map,
						position: new TMap.LatLng(this.geometries[i].datas.hospitalLat, this.geometries[i].datas.hospitalLng),
						offset: {
							x: 0,
							y: -32
						} //设置信息窗相对position偏移像素
					});

					// infoWindow.clears();//关闭信息窗
					infoWindow.setContent('待接单数量：' + this.geometries[i].datas.ordersCount); //设置信息窗内容
					infoWindow.open(); //初始信息窗开启
					//this.infoWindowList.push(infoWindow);
					// infoWindow.close(); //关闭信息窗
				}
				let that = this
				this.marker.on("click", function (evt) {
					that.hospitalId = evt.geometry.datas.hospitalId
					that.dataSelectoder()
					that.dialogFormVisible2 = true
				})
				// 师傅定位

				// console.log('this.lists123------------', this.lists)
				var imgUrl = ""
				this.marker = new TMap.MultiMarker({
					map: map, // 显示Marker图层的底图
					enableCollision: true,
					styles: {
						big: new TMap.MarkerStyle({
							width: 40,
							height: 40,
							anchor: { x: 36, y: 32 },
							src: imgUrl,//https://mapapi.qq.com/web/lbs/visualizationApi/demo/img/big.png
							color: '#333',
							size: 16,
							direction: 'bottom',
							strokeColor: '#fff',
							offset: { x: 0, y: 5 },
							strokeWidth: 2,
							'angle': 0,
						}),
					},
					enableCollision: false, // 开启碰撞
					geometries: this.lists,
				});

				/* if(this.infoWindowList && this.infoWindowList.length>0){
					for(var i in this.infoWindowList){
						var infoWindow=this.infoWindowList[i];
						infoWindow.close()
					}
				} */


				//初始化infoWindow
				// console.log('this.lists------------', this.lists)
				// infoWindow.clear();
				// for (var i in this.lists) {
				// 	var infoWindow1 = new TMap.InfoWindow({
				// 		map: map,
				// 		position: new TMap.LatLng(this.lists[i].datas.lat, this.lists[i].datas.lng),
				// 		offset: {
				// 			x: 0,
				// 			y: -32
				// 		}, //设置信息窗相对position偏移像素
				// 	});
				// 	// infoWindow.clears();//关闭信息窗
				// 	// infoWindow1.setContent('待服务数量：1'); //设置信息窗内容
				// 	infoWindow1.setContent('未完成订单：' + this.lists[i].datas.orderCount); //设置信息窗内容
				// 	infoWindow1.open(); //初始信息窗开启
				// 	//this.infoWindowList.push(infoWindow);
				// 	// infoWindow.close(); //关闭信息窗
				// }
				let _that = this
				this.marker.on("click", function (evt) {
					console.log(evt.geometry)
					that.rows = evt.geometry.datas.artificerId
					_that.daifuwu(evt.geometry.datas)

					_that.dialogFormVisibleSf = true
				})


			},
			// 地图定位
			select() {
				console.log(this.detailedAddress)
				// this.address = this.province+ this.city+this.district+this.address
				var addr = this.province + this.city + this.district + this.address
				let that = this
				jsonp('https://apis.map.qq.com/ws/geocoder/v1/?address==' + addr +
					'&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75&get_poi=1&output=jsonp', {
					myCustomUrlParam: 'veryNice'
				}).then(response => {
					// handle success
					console.log('response', response)
					that.longitude = response.result.location.lng; // 经度
					that.latitude = response.result.location.lat; // 纬度
					// that.address = response.result.title
					that.setMap()
				}).catch(error => {
					// handle error
				}).then(() => {
					// always executed
				});
			},
			// 医院点击事件
			bindClick() {
				this.dialogFormVisible2 = true
				this.dataSelectoder()
			},
			phoneSelect() {
				this.select()
			},
			onprogress1(event, file, fileList) {
				console.log('详情图上传进度', parseInt(event.percent))
				this.percentage1 = parseInt(event.percent)
			},
			// 获取省市区
			handleChange55(value) {
				this.dataSelect()
			},
			cleck() {
				this.phoneT = ''
				this.hospitalNameT = ''
				this.cityT = ''
				this.orderNoT = ''
				this.dataSelect()
			},
			handleChange() {
				this.$router.push({
					path: '/riderScheduling',
				})
			},
			dataSelect() {
				this.tableDataLoadingDt = true
				this.$http({
					url: this.$http.adornUrl('timedtask/getMapOrderData'),
					method: 'get',
					params: this.$http.adornParams({
						'riderPhone': this.phoneT,
						'hospitalName': this.hospitalNameT,
						'city': this.cityT,
						'ordersNo': this.orderNoT
					})
				}).then(({
					data
				}) => {
					console.log(data)
					var arr = []
					var arr1 = []
					this.geometries = []
					this.lists = []
					if (data.data.hospitalList.length > 0) {
						for (var i in data.data.hospitalList) {
							if (data.data.hospitalList[i].hospitalLat && data.data.hospitalList[i].hospitalLng) {
								var obj = {}
								obj.position = new TMap.LatLng(data.data.hospitalList[i].hospitalLat, data.data.hospitalList[i].hospitalLng)
								obj.datas = data.data.hospitalList[i]
								obj.img = data.data.hospitalList[i].icon
								obj.content = data.data.hospitalList[i].hospitalName
								arr.push(obj)
								this.longitude = data.data.hospitalList[0].hospitalLng
								this.latitude = data.data.hospitalList[0].hospitalLat
							}
						}
						this.geometries = arr
						this.setMap();
						this.tableDataLoadingDt = false
					}
					if (this.hospitalNameT != '' && this.geometries.length == 0) {
						this.$message({
							message: '暂无医院数据',
							type: 'warning',
							duration: 1500,
							onClose: () => { }
						})
					}

					if (data.data.riderLocations.length > 0) {
						for (var i in data.data.riderLocations) {
							if (data.data.riderLocations[i].lat && data.data.riderLocations[i].lng) {
								var obj = {}
								obj.position = new TMap.LatLng(data.data.riderLocations[i].lat, data.data.riderLocations[i].lng)
								obj.styleId = 'big'
								obj.datas = data.data.riderLocations[i]
								obj.img = data.data.riderLocations[i].userEntity.avatar
								if (data.data.riderLocations[i].phone) {
									obj.content = data.data.riderLocations[i].phone
								} else {
									obj.content = data.data.riderLocations[i].userEntity.phone
								}

								arr1.push(obj)
								if (this.geometries.length == 0) {
									this.longitude = data.data.riderLocations[0].lng
									this.latitude = data.data.riderLocations[0].lat
								}
								// console.log('this.lists----lng:', data.data.riderLocations[i].lng)
							}
						}
						this.lists = arr1
						this.setMap();
						this.tableDataLoadingDt = false
						if (this.phoneT != '' && this.lists.length > 0) {
							
							
							this.longitude = data.data.riderLocations[0].lng
							this.latitude = data.data.riderLocations[0].lat
							this.setMap();
							this.tableDataLoadingDt = false
						}
					}
					if (this.phoneT != '' && this.lists.length == 0) {
						this.$message({
							message: '暂无骑手数据',
							type: 'warning',
							duration: 1500,
							onClose: () => { }
						})
					}
					if (this.geometries.length == 0 && this.lists.length == 0) {

						this.$message({
							message: '暂无数据',
							type: 'warning',
							duration: 1500,
							onClose: () => { }
						})
						this.setMap();
						this.tableDataLoadingDt = false
					}


				})
			},
			// 重置
			cleans() {
				this.province = ''
				this.city = ''
				this.district = ''
				this.storeAddress = []
				this.storeAddre = '请选择城市'
				this.dataSelect()
			},
			// 详情跳转
			updates(userId) {
				if (userId) {
					this.$router.push({
						path: '/userDetail',
						query: {
							userId: userId
						}
					})
				}
			},
			// select选择事件
			animeDat(state) {
				this.page = 1
				this.dataSelectoder()
			},
			cleansDet() {
				this.page = 1
				this.type = ''
				this.userName = ''
				this.ordersNo = ''
				this.dataSelectoder()
			},

			// 获取医院订单
			dataSelectoder() {
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('orders/queryOrders'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'type': this.type,
						'name': '',
						'userName': this.userName,
						'status': 4,
						'ordersNo': this.ordersNo,
						'startTime': '',
						'endTime': '',
						'hospitalId': this.hospitalId,
						'shopId': sessionStorage.getItem('shopId'),
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					if (data.data) {
						this.tableData = returnData
					} else {
						this.tableData.records = []

					}


				})
			},
			// 转单弹框
			zhuandan(row, pd) {
				this.ordersType = row.ordersType
				this.ordersId = row.ordersId
				if (pd) {
					this.pd = pd
				} else {
					this.pd = ''
				}

				this.dataSelectUser()
				this.dialogFormVisible = true
			},
			// 确认选择
			userBtns(row) {
				let url = ''
				if (this.pd) {
					url = 'orders/distributionOrder'
				} else {
					url = 'orders/giveOrdersUser'
				}
				this.$http({
					url: this.$http.adornUrl(url),
					method: 'post',
					params: this.$http.adornParams({
						'userId': row.userId,
						'orderId': this.ordersId,
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dataSelectoder()
								this.dataSelect()
								this.dialogFormVisible = false
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => { }
						})
					}


				})
			},
			// 获取数据列表
			dataSelectUser() {
				this.tableDataLoadingU = true
				this.$http({
					url: this.$http.adornUrl('user/getNursingListV5'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page1,
						'limit': this.limit1,
						'city': this.cityU,
						'phone': this.phone,
						'realName': this.campus,
						'sex': this.sexU,
						'authentication': this.ordersType,
						'shopId': sessionStorage.getItem('shopId'),
					})
				}).then(({
					data
				}) => {
					this.tableDataLoadingU = false
					let returnData = data.data
					if (data.data) {
						this.userData = returnData
					} else {
						this.userData.records = []
					}


				})
			},
			// 查询
			selectU() {
				this.page = 1
				this.dataSelectUser()
			},
			// 重置
			cleansU() {
				this.page1 = 1
				this.campus = ''
				this.phone = ''
				this.sexU = ''
				this.cityU = ''
				this.dataSelectUser()
			},
			dataDel(row, index) {
				console.log(row)
				this.titles = '就诊信息'
				this.datleIndex = index
				this.detaDatle = row
				this.dialogFormVisibleDel = true
			},
			// 获取待服务订单
			daifuwu(row) {

				this.tableDataLoadingU = true
				this.$http({
					url: this.$http.adornUrl('orders/selectMyTakeOrders'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page1,
						'limit': this.limit1,
						'userId': row.userId,
						'state': 6
					})
				}).then(({
					data
				}) => {
					this.tableDataLoadingU = false
					let returnData = data.data
					if (data.data) {
						this.userData = returnData
					} else {
						this.userData.records = []
					}


				})
			}

		},
		created() {

		},
		mounted() {
			let data = {
				key: "ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75", //申请的密钥
				output: "jsonp",
			};
			let url = "https://apis.map.qq.com/ws/location/v1/ip"
			this.$jsonp(url, data).then(res => {
				console.log('获取Ip定位成功----')
				this.longitude = res.result.location.lng
				this.latitude = res.result.location.lat

			}).catch(err => {
				this.$toast('获取Ip定位失败--', err.message)
			})
			// this.setMap();
			// this.getMyLocation()
			this.dataSelect()

		}
	}
</script>

<style>
	.imgs {
		position: relative;
		border-radius: 6px;
		width: 148px;
		height: 148px;
		margin-right: 10px;
		display: inline-block;
	}

	.dels {
		position: absolute;
		top: 0;
		left: 0;
		display: none;
	}

	.dels .el-icon-delete {
		line-height: 148px;
		padding-left: 58px;
		font-size: 25px;
		color: #fff;
	}

	.imgs:hover .dels {
		width: 100%;
		height: 100%;
		background: #000;
		display: block;
		opacity: 0.5;
	}

	.bqList {
		padding: 4px 14px;
		margin: 4px;
		border: 1px solid #efefef;
		font-size: 12px;
		color: #999;
		border-radius: 4px;
		margin-right: 15px;
	}

	.delss {
		display: none;
		position: relative;
	}

	.delss .el-icon-delete {
		position: absolute;
		top: 0;
	}

	.bqList:hover .delss {
		display: initial;
		opacity: 0.5;

	}

	.tj {
		padding: 6px !important;
		margin: 4px;
		font-size: 12px;
		border: 1px solid #ccc;
		border-radius: 4px;
	}

	.csssprite {
		width: 100% !important;
		height: 100% !important;
		border-radius: 50% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		min-height: 100% !important;
		max-height: 100% !important;
		border: 3px solid red !important;
	}

	.detailtabel .table_main table {
		width: 100%;
	}

	.detailtabel .table_main {
		border: 1px solid #e8e8e8;
	}

	.detailtabel table tr {
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr th {
		background-color: #fafafa;
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr td {
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table th {
		color: rgba(0, 0, 0, .85);
		font-weight: 400;
		font-size: 14px;
		line-height: 1.5;
	}

	.border-rt {
		border-right: none !important;
	}

	.border-bt {
		border-bottom: none !important;
	}

	.box {
		padding: 44px;
		border: 1px solid #eee;
		margin: 15px 10px;
	}

	.box_num {
		font-size: 14px;
		color: #66b1ff;
	}

	.box_num .box_color {
		color: #333;
		font-size: 14px;
		margin-bottom: 15px;
	}

	.box_num div span {
		font-size: 20px;
		margin-left: 5px;
	}

	.text_color {
		color: #4f9dec;
	}

	.text_color span {
		margin-right: 5px;
	}

	.el-step.is-vertical .el-step__title {
		padding-bottom: 30px !important;
	}
</style>